<?php
	require_once("functions.php");
	session_start();
	unset($_SESSION['username']);
	unset($_SESSION['password']);
	
	$con = connectToDB();
	if(!$con){
		header("location:index.php");
		die();
	}
	mysql_close($con);
	header("location:index.php");
?>